from flask import Flask, render_template
from settings import Config, db
from models import House, Recommend, User

app = Flask(__name__)
app.config.from_object(Config)
db.init_app(app)

@app.route('/')
def test():
    first_user = House.query.first()
    print(first_user)
    return 'OK'




# 将蓝图注册到app中
# app.register_blueprint(index_page, url_prefix='/')
# app.register_blueprint(list_page, url_prefix='/')
# app.register_blueprint(detail_page, url_prefix='/')
# app.register_blueprint(user_page, url_prefix='/')

if __name__ == '__main__':
    app.run(debug=True)

